<?php
namespace app\test\controller;


use think\facade\Hook;

class HookTest
{
    public function index(){
        return "test模块默认方法";

    }
    /*测试自定义钩子*/
    public function testHook(){
        Hook::listen('eat','吃饭');
    }
}